package com.lam.code.base;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lam.code.base.domain.BaseEntity;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author lam
 * @description 基类baseService
 * @date 2019/10/6 22:27
 */
public class BaseServiceImpl<M extends BaseMapper<T>,T extends BaseEntity>
        extends ServiceImpl<BaseMapper<T>,T> implements BaseService<T>  {
    @Resource
    protected M mapper;

    @Override
    public IPage<T> page(IPage<T> page, Map<String, Object> parameterMap) {
        return this.mapper.selectPageData(page,parameterMap);
    }
}
